package com.itheima.Homework5;

public class Test10 {
    public static void main(String[] args) {
        for(int i =0;i<=20;i++){
            for(int j =0;j<=33;j++){
                for(int k =0;k<=300;k++){
                    if((i+j+k)==100&&(i*5+j*3+k/3)==100&&k%3==0){
                        System.out.println("鸡翁数:"+i);
                        System.out.println("鸡母数"+j);
                        System.out.println("小鸡数"+k);
                        System.out.println("----------------");
                    }
                }
            }
        }
    }
}
